import {createRouter, createWebHashHistory} from 'vue-router'
import Login from '../views/Login.vue'
import Success from '../views/Success.vue'
import UserList from '../views/User/UserList'

const routes = [
    {
        path: '/',
        name: 'Login',
        component: Login
    },
    {
        path: '/Success',
        name: 'Success',
        component: Success
    }
    ,
    {
        path: '/UserList',
        name: 'UserList',
        component: UserList
    }
    ,
    {
        path: '/layout',
        component: () => import('@/components/layout/LayoutMain.vue')
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
